home *** CD-ROM | disk | FTP | other *** search
/ Power Programmierung / Power-Programmierung (Tewi)(1994).iso / magazine / msysjour / vol06 / 03 / winedd / logger < prev    next >
Text File  |  1991-05-01  |  3KB  |  61 lines

  1. #
  2. #                   LOGGER embedded device driver application
  3. #
  4. # Compiler: MS C 6.0
  5. #
  6.  
  7. # If C6_ASM is defined, the presence of C 6.0 is assumed and
  8. # _asm keyword support is required.  If C6_ASM is NOT defined,
  9. # C 5.X compatible code is used.
  10. # If INTERRUPT_DEVICE is defined, the interrupt handler is invoked
  11. # by FEEDER via an INT instruction.  If INTERRUPT_DEVICE is NOT defined,
  12. # the interrupt handler is invoked by FEEDER via direct function call.
  13. constant_options= -D C6_ASM -D INTERRUPT_DEVICE
  14.  
  15. name            = logger
  16. dll_name        = driver
  17. feed_name       = feeder
  18. icon_name       = bolt
  19. feed_icon_name  = spoon
  20. model           = M
  21. lib_model       = S
  22. ptrs_regs       = snw
  23. fp_option       = e     # e - Real/Emulator; a - Alternate
  24. cc_options      = -c -A$(model)     -Gsw -Os -Zp -W3 $(constant_options)
  25. cc_dll_options  = -c -A$(ptrs_regs) -Gsw -Os -Zp -W3 $(constant_options)
  26. ld_options      = $(dll_name).lib $(model)libc$(fp_option)w libw /a:16 /map /noi /nod /noe
  27. ld_dll_options  = $(lib_model)dllc$(fp_option)w $(lib_model)libc$(fp_option)w libw /a:16 /map /noi /nod /noe
  28. errorlog        = $(name).err
  29.  
  30.  
  31. $(name).obj:        $(name).c defs.h logmsg.h device.h $(name)
  32.     cl $(cc_options) $*.c >> $(errorlog)
  33.  
  34. $(dll_name).obj:    $(dll_name).c devdefs.h intnum.h dprivate.h device.h $(name)
  35.     cl $(cc_dll_options) $*.c >> $(errorlog)
  36.  
  37. $(feed_name).obj:   $(feed_name).c dprivate.h device.h intnum.h logmsg.h fdefs.h $(name)
  38.     cl $(cc_options) $*.c >> $(errorlog)
  39.  
  40. $(name).res:        $(name).rc $(icon_name).ico defs.h
  41.     rc -r $(name).rc >> $(errorlog)
  42.  
  43. $(feed_name).res:    $(feed_name).rc $(feed_icon_name).ico fdefs.h
  44.     rc -r $(feed_name).rc >> $(errorlog)
  45.  
  46. $(dll_name).dll:    $(dll_name).obj $(dll_name).def
  47.     echo $(dll_name).dll: >> $(errorlog)
  48.     link $(dll_name).obj , $(dll_name).dll , $(dll_name).map , $(ld_dll_options) , $(dll_name).def >> $(errorlog)
  49.     rc $(dll_name).dll > nul
  50.     implib $(dll_name).lib $(dll_name).def
  51.  
  52. $(name).exe:        $(name).obj $(name).res $(name).def $(icon_name).ico $(dll_name).lib
  53.     echo $(name).exe: >> $(errorlog)
  54.     link $(name).obj , $(name).exe , $(name).map , $(ld_options) , $(name).def >> $(errorlog)
  55.     rc $(name).res > nul
  56.  
  57. $(feed_name).exe:   $(feed_name).obj $(feed_name).res $(feed_name).def $(feed_icon_name).ico
  58.     echo $(feed_name).exe: >> $(errorlog)
  59.     link $(feed_name).obj , $(feed_name).exe , $(feed_name).map , $(ld_options) , $(feed_name).def >> $(errorlog)
  60.     rc $(feed_name).res > nul
  61.